package com.yu.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yu.crm.domain.pojo.CrmAreaManage;
import com.yu.crm.domain.pojo.CrmBuilding;
import com.yu.crm.domain.pojo.CrmDevice;
import com.yu.crm.domain.pojo.CrmEarlyWarningDiscernArea;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yu.crm.domain.response.BuildingRep;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author pan
 * @since 2020-07-01
 */
public interface ICrmEarlyWarningDiscernAreaService extends IService<CrmEarlyWarningDiscernArea> {

    IPage<CrmEarlyWarningDiscernArea> list(Page<CrmEarlyWarningDiscernArea> page, Long id, String areaName);

    List<CrmAreaManage> getAllArea();
    List<CrmBuilding> getBuildingByAreaManagerId(Long areaManageId);
    List<CrmDevice> getAllDeviceByAreaBuildingId(Long areaBuildingId,String areaBuildingType);
    List<CrmDevice> getAllDeviceByPlatformType(String platformType);
    BuildingRep getLocationByDeviceId(Long deviceId, String areaBuildingType);
    CrmAreaManage getAreaManageByBuildingId(Long buildingId);

}
